package com.edu.rabbitmq;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class MessageHandler {

	private Log log = LogFactory.getLog(getClass());
	
	public void handleMessage(CommonMessage<Object> message) {
		try{
			log.info(" MessageHandler message content text:" + message.toString());
			System.out.println("message=="+message.getMessage().toString());
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
}
